import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/test',
        name: 'test',
        component: () => import('../views/test/test.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('../views/login.vue')
    },
    {
        path: '/scene',
        name: 'scene',
        component: () => import('../views/scene.vue')
    },
    {
        path: '/factoryList',
        name: 'factoryList',
        component: () => import('../views/goToFactory/index.vue')
    },
    {
        path: '/factoryAdd',
        name: 'factoryAdd',
        component: () => import('../views/goToFactory/addFactory.vue')
    },
    {
        path: '/newPro',
        name: 'newPro',
        component: () => import('../views/newPro.vue')
    },
    {
        path: '/about',
        name: 'About',
        component: () => import('../views/About.vue')
    }
]

const router = new VueRouter({
  routes
})

export default router
